.main {
  background: #9ff1fe;
  // 头部区域
  .head {
    width: 100%;
    height: 506px;
    background-image: url('@/assets/childrenDay/bgImg.png');
    background-size: 100% 506px;
    /* 按钮样式 */
    .btn {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      padding-top: 131px;
      .btn-size {
        width: 24px;
        height: 72px;
        background-size: 24px 72px;
      }
      .rule {
        margin-bottom: 24px;
        background-image: url('@/assets/childrenDay/headBtn/rule.png');
      }
      .box {
        display: flex;
        justify-content: space-between;
        width: 100%;
        .record {
          background-image: url('@/assets/childrenDay/headBtn/record.png');
        }
        .award {
          background-image: url('@/assets/childrenDay/headBtn/award.png');
        }
        .award-rank {
          background-image: url('@/assets/childrenDay/awardRank.png');
        }
      }
    }
  }
  // 标签页按钮样式
  .tab-btn {
    margin-top: -8px;
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 40px;
    .puzzle {
      position: absolute;
      left: 51px;
      background-size: 100%;
    }
    .puzzleOn {
      width: 160px;
      height: 40px;
      background-image: url('@/assets/childrenDay/tabBtn/puzzleOn.png');
      z-index: 1;
    }
    .puzzleOff {
      width: 132px;
      height: 36px;
      left: 66px;
      background-image: url('@/assets/childrenDay/tabBtn/puzzleOff.png');
    }
    .rank {
      position: absolute;
      right: 52px;
      background-size: 100%;
    }
    .rankOff {
      width: 132px;
      height: 36px;
      background-image: url('@/assets/childrenDay/tabBtn/rankOff.png');
    }
    .rankOn {
      width: 160px;
      height: 40px;
      right: 43px;
      background-image: url('@/assets/childrenDay/tabBtn/rankOn.png');
      z-index: 1;
    }
  }
  // 主体区域
  .content {
    margin-top: -2.1px;
    padding: 0 15px;
    // 拼图区域
    .puzzle-content {
      padding-bottom: 50px;
      .puzzle-main {
        width: 100%;
        height: 404px;
        border-radius: 12px;
        background-color: #fff;
        margin-bottom: 20px;
        border: 2.1px solid #009bff;
        box-shadow: inset 0px 4px 20px 0px rgba(131, 245, 227, 0.8);
        // 拼图头部文字信息
        .puzzle-head {
          padding: 14px 0 7px;
          display: flex;
          .icon {
            margin-left: 19px;
            display: flex;
            align-items: center;
            font-size: 12px;
            color: #506bf0;
            .puzzle-pic {
              width: 22px;
              height: 28px;
              margin-right: 9px;
            }
          }
          .explain {
            font-size: 12px;
            margin-left: 21px;
            line-height: 28px;
            color: #506bf0;
          }
        }
        // 拼图
        .puzzle-body {
          margin: 0 34px;
          width: 277px;
          height: 256px;
          background-size: 100%;
          background-image: url();
        }
        .castleBg {
          background-image: url('@/assets/childrenDay/puzzle/castle/castleBg.png');
        }
        .horseBg {
          background-image: url('@/assets/childrenDay/puzzle/horse/horseBg.png');
        }
        .houseBg {
          background-image: url('@/assets/childrenDay/puzzle/house/houseBg.png');
        }
        .twelveBg {
          background-image: url('@/assets/childrenDay/puzzle/12/12Bg.png');
        }
        .sixteenBg {
          background-image: url('@/assets/childrenDay/puzzle/16/16Bg.png');
        }
        // 进度条
        .progress {
          position: relative;
          height: 20px;
          margin: 10px 32px;
          .progress-num {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 10px;
            color: #fff;
            z-index: 1;
          }
          .van-slider {
            border: 1px solid #86c0ff;
            .van-slider__bar {
              background: linear-gradient(360deg, #3387fe 0%, #4ce0fe 100%) !important;
            }
          }
        }
        // 使用按钮
        .bottom-btn {
          display: flex;
          justify-content: center;
          .use-btn {
            width: 120px;
            height: 38px;
            background-size: 100%;
          }
          .use {
            background-image: url('@/assets/childrenDay/useBtn/use.png');
          }
          .use-max {
            margin-left: 20px;
            background-image: url('@/assets/childrenDay/useBtn/useMax.png');
          }
        }
      }
      // 拼图广场
      .piazza {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 196px;
        background-color: #fff;
        border-radius: 12px;
        border: 2.1px solid #009bff;
        box-shadow: inset 0px 4px 20px 0px rgba(131, 245, 227, 0.8);
        .title {
          margin-top: 14px;
          width: 88px;
          height: 32px;
          background-image: url('@/assets/childrenDay/plaza.png');
          background-size: 100%;
        }
        .piazza-hint {
          margin-top: 15px;
          font-size: 11px;
        }
        // 轮播
        .van-swipe {
          margin-top: 15px;
          width: 325px;
          height: 86px;
          .van-swipe__track {
            .last {
              margin: 0;
              width: 74px !important;
            }
            .van-swipe-item {
              margin-right: 1px;
              display: flex;
              justify-content: space-between;
              .pic {
                text-align: center;
                .name {
                  font-size: 11px;
                }
              }
              .right {
                margin-top: 29px;
                width: 12px;
                height: 11px;
                background-image: url('@/assets/childrenDay/right.png');
                background-size: 100%;
              }
            }
          }
        }
      }
    }
    // 榜单区域
    .rank-main {
      padding: 0 15px 50px;
      .rank-body {
        padding: 16px 9px;
        width: 100%;
        background-color: #fff;
        border-radius: 12px;
        border: 2.1px solid #009bff;
        box-shadow: inset 0px 4px 20px 0px rgba(131, 245, 227, 0.8);
        // 空状态
        :deep(.van-empty) {
          padding: 10px 0;
          .van-empty__image {
            width: 112px;
            height: 162px;
          }
        }
        .rank-list {
          padding-right: 10px;
          display: flex;
          align-items: center;
          width: 100%;
          height: 88px;
          background-color: #cae4ff;
          margin-bottom: 8px;
          border-radius: 8px;
          .ranking {
            width: 48px;
            text-align: center;
            font-size: 16px;
            color: #5979da;
            .rank-img {
              width: 28px;
              height: 28px;
            }
          }
          .icon {
            width: 48px;
            height: 48px;
          }
          .info {
            flex: 1;
            margin-left: 10px;
            .name {
              width: 100px;
              font-size: 14px;
              font-weight: 700;
              color: #465abe;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
            }
            .id {
              margin-top: 5px;
              font-size: 12px;
              color: #5979da;
            }
          }
          .count {
            font-size: 10px;
            color: rgba(89, 121, 218, 0.8);
            .text {
              font-size: 12px;
              color: rgba(89, 121, 218, 0.8);
              margin-bottom: 0;
              text-align: right;
            }
            .num {
              white-space: nowrap;
            }
          }
        }
        .user-info {
          margin-bottom: 0;
          background-color: #c2fff8;
          .ranking {
            font-size: 12px;
            color: #259c98;
          }
          .info {
            .name {
              color: #259c98;
            }
            .id {
              color: #61bcb9;
            }
          }
          .count {
            color: #61bcb9;
            .text {
              color: #61bcb9;
            }
          }
        }
      }
    }
  }
}
